import { Emitter } from "./EventKit";

let emitter = new Emitter();

/**@description 游戏公共事件 */
export namespace GameEventDefine {
    /**窗口切回事件 */
    export const ON_GAME_SHOW = emitter.createEvent<() => void>();
    /**窗口切出事件 */
    export const ON_GAME_HIDE = emitter.createEvent<() => void>();
    /**返回键和esc键 */
    export const ON_GAME_KEY_BACK = emitter.createEvent<() => void>();
    /**展示屏蔽层 */
    export const ON_SHOW_BLOCK = emitter.createEvent<(isShow:boolean) => void>();

}